package com.ruoyi.district.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.district.mapper.FangMetroStationMapper;
import com.ruoyi.district.domain.FangMetroStation;
import com.ruoyi.district.service.IFangMetroStationService;

/**
 * 站点列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-13
 */
@Service
public class FangMetroStationServiceImpl implements IFangMetroStationService 
{
    @Autowired
    private FangMetroStationMapper fangMetroStationMapper;

    /**
     * 查询站点列表
     * 
     * @param id 站点列表主键
     * @return 站点列表
     */
    @Override
    public FangMetroStation selectFangMetroStationById(Integer id)
    {
        return fangMetroStationMapper.selectFangMetroStationById(id);
    }

    /**
     * 查询站点列表列表
     * 
     * @param fangMetroStation 站点列表
     * @return 站点列表
     */
    @Override
    public List<FangMetroStation> selectFangMetroStationList(FangMetroStation fangMetroStation)
    {
        return fangMetroStationMapper.selectFangMetroStationList(fangMetroStation);
    }

    /**
     * 新增站点列表
     * 
     * @param fangMetroStation 站点列表
     * @return 结果
     */
    @Override
    public int insertFangMetroStation(FangMetroStation fangMetroStation)
    {
        return fangMetroStationMapper.insertFangMetroStation(fangMetroStation);
    }

    /**
     * 修改站点列表
     * 
     * @param fangMetroStation 站点列表
     * @return 结果
     */
    @Override
    public int updateFangMetroStation(FangMetroStation fangMetroStation)
    {
        return fangMetroStationMapper.updateFangMetroStation(fangMetroStation);
    }

    /**
     * 批量删除站点列表
     * 
     * @param ids 需要删除的站点列表主键
     * @return 结果
     */
    @Override
    public int deleteFangMetroStationByIds(Integer[] ids)
    {
        return fangMetroStationMapper.deleteFangMetroStationByIds(ids);
    }

    /**
     * 删除站点列表信息
     * 
     * @param id 站点列表主键
     * @return 结果
     */
    @Override
    public int deleteFangMetroStationById(Integer id)
    {
        return fangMetroStationMapper.deleteFangMetroStationById(id);
    }

    @Override
    public List<FangMetroStation> listMetroStation(FangMetroStation fangMetroStation) {
        return fangMetroStationMapper.listMetroStation(fangMetroStation);
    }
}
